package com.ctgu.fastleader.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class OutputOrder {
    private Integer orderid;

    private Integer goodsid;

    private Integer num;

    private String customerphone;

    private String customername;

    private String customeradd;

    private Integer state;

    private Double totalprice;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    public OutputOrder() {
    }

    public OutputOrder(Integer orderid,Integer state) {
        this.orderid = orderid;
        this.state = state;
    }

    public OutputOrder(Integer orderid, Integer goodsid, Integer num, String customerphone, String customername, String customeradd, Integer state, Double totalprice, Date createtime) {
        this.orderid = orderid;
        this.goodsid = goodsid;
        this.num = num;
        this.customerphone = customerphone;
        this.customername = customername;
        this.customeradd = customeradd;
        this.state = state;
        this.totalprice = totalprice;
        this.createtime = createtime;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getCustomerphone() {
        return customerphone;
    }

    public void setCustomerphone(String customerphone) {
        this.customerphone = customerphone == null ? null : customerphone.trim();
    }

    public String getCustomername() {
        return customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername == null ? null : customername.trim();
    }

    public String getCustomeradd() {
        return customeradd;
    }

    public void setCustomeradd(String customeradd) {
        this.customeradd = customeradd == null ? null : customeradd.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Double getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Double totalprice) {
        this.totalprice = totalprice;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
}